package com.mes.system.mapper;

import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.system.domain.SysAutoCodeRule;

import java.util.List;

/**
 * 编码生成规则表Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-04-22
 */
public interface SysAutoCodeRuleMapper extends BaseMapper<SysAutoCodeRule>
{

    /**
     * 批量删除编码生成规则表
     * @param ids 需要删除的编码生成规则表ID集合
     * @return
     */
    public int deleteSysAutoCodeRuleByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    SysAutoCodeRule checkRuleCodeUnique(@Param("ruleCode") String ruleCode);

    SysAutoCodeRule checkRuleNameUnique(@Param("ruleName") String ruleName);

    List<SysAutoCodeRule> selectSysAutoCodeResultList(SysAutoCodeRule param);
}
